namespace CLELCore.Assembly.Descriptors.ClassDescriptors
{
	public class BuiltInClassDescriptor : ClassDescriptor
	{
		private byte _builtin_type;

		public byte BuiltInType
		{
			get
			{
				return _builtin_type;
			}
			set
			{
				_builtin_type = value;
			}
		}

		public BuiltInClassDescriptor(byte builtin_type) : base(ClassDescriptor.BUILTIN_CLASSDESCRIPTOR)
		{
			_builtin_type = builtin_type;
		}

		public override ClassDescriptor Copy()
		{
			return (ClassDescriptor)new BuiltInClassDescriptor(_builtin_type);
		}

		public override byte [] ToBytes()
		{
			byte [] ret = new byte[1];
			ret[0] = _builtin_type;
			return ret;
		}
	}
}
